package com.example.tbag.healthcare.Activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

import com.example.tbag.healthcare.R;

import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by tbag on 2017/5/2.
 */

public class Card2Activity extends AppCompatActivity {
    private int id;
    @OnClick(R.id.btn)
    public void medecine(){
        startActivity(new Intent(this,MedecineActivity.class));
    }

    @OnClick(R.id.btn1)
    public void main(){
        Intent intent =new Intent(this,MainActivity.class);
        intent.putExtra("id",id);
        startActivity(intent);
    }

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_card2);
        ButterKnife.bind(this);
        id = getIntent().getIntExtra("id",0);
    }
}
